import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home.vue";

import Business from '@/views/Business.vue'
import News from '@/views/News.vue'
import Aboutus from '@/views/Aboutus.vue'
import Contactus from '@/views/Contactus.vue'
import Department from '@/views/Department.vue'
import Detail from '@/views/Detail.vue'
import Job from '@/views/Job.vue'
import Column from '@/views/Column.vue'
import BusinessDetails from '@/views/BusinessDetails.vue'
import Position from '@/views/Position.vue'

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: '/business',
    name: 'business',
    component: Business,
    meta:{
    	title:'业务布局'
    }
  },
  {
    path: '/news',
    name: 'news',
    component: News,
    meta:{
    	title:'新闻中心'
    }
  },
  {
    path: '/aboutus',
    name: 'aboutus',
    component: Aboutus,
    meta:{
    	title:'关于我们'
    }
  },
  {
    path: '/department',
    name: 'department',
    component: Department,
    meta:{
    	title:'旗下公司'
    }
  },
  {
    path: '/detail',
    name: 'detail',
    component: Detail,
    meta:{
    	title:'详情'
    }
  },
  {
    path: '/job',
    name: 'job',
    component: Job,
    meta:{
    	title:'人力资源'
    }
  },
  {
  	path: '/jobList',
  	name: 'jobList',
  	component: () => import('../views/JobList.vue'),
  	meta:{
  		title:'招聘列表'
  	}
  },
  {
  	path: '/jobDetails',
  	name: 'jobDetails',
  	component: () => import('../views/JobDetails.vue'),
  	meta:{
  		title:'招聘详情'
  	}
  },
  {
    path: '/column',
    name: 'column',
    component: Column,
    meta:{
    	title:'业务范围'
    }
  },
  {
    path: '/businessDetails',
    name: 'businessDetails',
    component: BusinessDetails,
    meta:{
    	title:'业务范围'
    }
  },
  {
    path: '/position',
    name: 'position',
    component: Position,
    meta:{
    	title:'业务范围'
    }
  },
  {
    path: '/contactus',
    name: 'contactus',
    component: Contactus,
    meta:{
    	title:'业务范围'
    }
  },
  
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;